<%@ Page Language="C#" MasterPageFile="~/MasterPages/manager/manager.master" AutoEventWireup="true" CodeFile="InventoryUpdate.aspx.cs" Inherits="manager_inventory_InventoryUpdate" Title="Untitled Page" Async="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <link href="../../manager/css/import.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../scripts/prototype.js"></script>
    <script type="text/javascript" src="../scripts/IUpdate.js"></script>
    
<asp:Panel runat="server" ID="panelSelectFile">
<h2>Bulk Inventory Update</h2>
<ol><li>Download a <asp:LinkButton id="btnGenerateCSV" onclick="btnGenerateCSV_Click" runat="server">CSV file of your inventory</asp:LinkButton></li><li>Update the CSV with your current inventory</LI><LI>Upload your inventory file:&nbsp; <asp:FileUpload id="uploadInventory" runat="server"></asp:FileUpload> <asp:Button id="btnUploadFile" onclick="btnUploadDataFile_Click" runat="server" Text="Upload Your Data File"></asp:Button></li></ol>
</asp:Panel>
<asp:Literal runat="server" ID="litDataFileID" Visible="false" />
<asp:Panel runat="server" ID="panelImport" Visible="false">
    <asp:Literal runat="server" ID="litResultsOverview" />
    <strong>Do you want to import this data?<br />Warning: This will overwrite your existing inventory with the data in your file! Only do this if you are sure the data is correct.</strong><br />
    <asp:Button id="btnUpdateInventory" onclick="btnUpdateInventory_Click" runat="server" Text="Yes - Update The Inventory"></asp:Button>
</asp:Panel>
<h2>Pre-Import Results</h2>
<div id="importResults"><asp:Literal runat="server" ID="litResults" /></div>

<P><A href="Default.aspx">&lt; Back to your inventory</A></P>
</asp:Content>

